package org.yagnus.ml.ie;

public class PrecisionRecallStorage extends PrecisionRecall {

    // These set of numbers aggregates the numbers from extraction side:
    protected double truePositive, falsePositive, trueNegative, falseNegative;
    protected double extractionCount;

    // These set of numbers stores information about performance relative to the
    // ground truth
    protected double recalled;
    protected double truthCount;

    public boolean reset() {
        truePositive = falsePositive = trueNegative = falseNegative = extractionCount = recalled = truthCount = 0;
        return true;
    }

    public PrecisionRecallStorage() {
        reset();
    }

    public double getTruePositive() {
        return truePositive;
    }

    public void setTruePositive(double truePositive) {
        this.truePositive = truePositive;
    }

    public double getFalsePositive() {
        return falsePositive;
    }

    public void setFalsePostive(double falsePostive) {
        this.falsePositive = falsePostive;
    }

    public double getTrueNegative() {
        return trueNegative;
    }

    public void setTrueNegative(double trueNegative) {
        this.trueNegative = trueNegative;
    }

    public double getFalseNegative() {
        return falseNegative;
    }

    public void setFalseNegative(double falseNegative) {
        this.falseNegative = falseNegative;
    }

    public double getRecalled() {
        return recalled;
    }

    public void setRecalled(double recalled) {
        this.recalled = recalled;
    }

    public double getTruthCount() {
        return truthCount;
    }

    public void setTruthCount(double truthCount) {
        this.truthCount = truthCount;
    }

    public double getExtractionCount() {
        return extractionCount;
    }

    public void setExtractionCount(double extractionCount) {
        this.extractionCount = extractionCount;
    }

}
